import request from '../utils/request';

export function pageLiveApp(params) {
  return request({
    url: '/live/list',
    method: 'get',
    params,
  });
}

export function getLiveStage(stageId) {
  return request({
    url: `/live/stage/${stageId}`,
    method: 'get',
  });
}

export function pageLiveStageApp(params) {
  return request({
    url: '/live/stage/list',
    method: 'get',
    params,
  });
}

export function pageLiveContentApp(params) {
  return request({
    url: '/live/content/list',
    method: 'get',
    params,
  });
}

export function pageLiveMsgApp(params) {
  return request({
    url: '/live/message/list',
    method: 'get',
    params,
  });
}

export function sendLiveMsgApp(message) {
  return request({
    url: '/live/message',
    method: 'post',
    data: message,
  });
}

export function likeLiveStage(id, isLike) {
  return request({
    url: `/live/stage/like/${id}`,
    method: 'post',
    data: {
      isLike,
    },
  });
}

export function getLiveDetail(id) {
  return request({
    url: `/live/detail/${id}`,
  });
}
